package com.tca.springmvc.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * @author zhouan
 * @Date 2021/8/20
 * 这个相当于springmvc容器
 */
@EnableWebMvc
@Configuration
@ComponentScan(value = {"com.tca"}, includeFilters={@ComponentScan.Filter(
        type= FilterType.ANNOTATION, value={Controller.class})}, useDefaultFilters = false)
public class WebConfig {
}
